// 检化验管理
import { getAction, deleteAction, putAction, putparamsAction, postAction, httpAction } from '@/api/manage'

// 检化验申请单
const inspectionApplicationList = (params) => getAction('/jksaas-produce/produce/qualityCheckTest/qualityCheckTestApply/queryPage', params)
const inspectionApplicationAdd = (params) => postAction('/jksaas-produce/produce/qualityCheckTest/qualityCheckTestApply/add', params)
const inspectionApplicationDetail = (id) => getAction(`/jksaas-produce/produce/qualityCheckTest/qualityCheckTestApply/${id}`)
const inspectionApplicationDel = (id) => deleteAction(`/jksaas-produce/produce/qualityCheckTest/qualityCheckTestApply/${id}`)


// 检化验单
const testReportList = (params) => getAction('/jksaas-produce/produce/qualityCheckTest/qualityCheckTestOrder/queryByPage', params)
//查询审批通过并且没有过提交检化验的的申请单数据
const testReportinsApp = (params) => getAction('/jksaas-produce/produce/qualityCheckTest/qualityCheckTestOrder/getApplyList', params)
const testReportinsAdd = (params) => postAction('/jksaas-produce/produce/qualityCheckTest/qualityCheckTestOrder/add', params)
const testReportinsDetail = (id) => getAction(`/jksaas-produce/produce/qualityCheckTest/qualityCheckTestOrder/${id}`)
const testReportinsEdit = (params) => putAction('/jksaas-produce/produce/qualityCheckTest/qualityCheckTestOrder/edit', params)
const testReportinsDel = (id) => deleteAction(`/jksaas-produce/produce/qualityCheckTest/qualityCheckTestOrder/${id}`)
const queryById = (params) => getAction(`/jksaas-produce/produce/anomalousfeedback/managementAnomalousFeedback/queryById`,params)







export {
  inspectionApplicationList,
  inspectionApplicationAdd,
  inspectionApplicationDetail,
  inspectionApplicationDel,

  testReportList,
  testReportinsApp,
  testReportinsAdd,
  testReportinsDetail,
  testReportinsEdit,
  testReportinsDel,
  queryById
}